#ifndef ZHUCE_H
#define ZHUCE_H

#include <QMainWindow>
#include <QJsonObject>
#include <QJsonDocument>
#include <QJsonValue>

namespace Ui {
class ZhuCe;
}

class ZhuCe : public QMainWindow
{
    Q_OBJECT

public:

    QJsonDocument createJsonRegistration(const QString& username, const QString& password, const QString& email) {
        QJsonObject jsonObj;
        jsonObj["username"] = username;
        jsonObj["password"] = password;
        jsonObj["email"] = email;

        QJsonDocument jsonDoc(jsonObj);
        return jsonDoc;
    }


    explicit ZhuCe(QWidget *parent = nullptr);
    ~ZhuCe();

private:
    Ui::ZhuCe *ui;

signals:
        void backToLogin();
private slots:
        void on_fasongyanzhengma_clicked();
        void on_zhuce_clicked();
        void on_fanhui_clicked();
};

#endif // ZHUCE_H
